package main

import "./observer"

func main() {
	eventCenter := observer.NewEventCenter()
	r1 := observer.EventReciver{}
	r2 := observer.EventReciver{}

	eventCenter.Register(&r1)
	eventCenter.Register(&r2)
	eventCenter.Notify(observer.Event{1})
	eventCenter.Degister(&r1)
	eventCenter.Notify(observer.Event{2})
}